module.exports = {
	devServer: {
		proxy: {
			'/api': {
				target: 'http://localhost:8080',
				changeOrigin: true,
				ws: true,
				secure: false,
				onProxyReq: function(proxyReq, req, res) {
					proxyReq.setHeader('Accept', 'application/json');
					proxyReq.setHeader('Content-Type', 'application/json');
				},
				onError: function(err, req, res) {
					console.error('Proxy error:', err);
				}
			}
		},
		host: 'localhost',
		port: 8081,
		open: true,
		https: false,
		disableHostCheck: true
	}
};